﻿using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using System.Web;
using WPS.SDK.http;
using WPS.SDK.openapi;

namespace WPS.Test
{
    class Program
    {
        static void Main(string[] args)
        {
            //JObject text = new Request().Get("https://localhost:44307/api/Contact").getJSONObject();
            //Console.WriteLine(text.ToString());

            //  JObject jsonObject = new JObject();
            //  jsonObject.Add("appid", Config.getAppid());
            //  jsonObject.Add("appkey", Config.getAppKey());
            //  jsonObject.Add("refresh_token", "AS213asdasdasd");
            //  string jsonString = JsonConvert.SerializeObject(jsonObject);
            ////  JObject text = new Request().Get(" https://secure.elong.com/passport/getValidateCode?0.1473186420317032").getJSONObject();

            //   JObject text = new Request().Post("https://localhost:44307/api/Contact/Post", jsonString).getJSONObject();
            //根据DNS获取域名绑定的IP
            //foreach (var address in Dns.GetHostEntry("www.baidu.com").AddressList)
            //{
            //    Console.WriteLine($"百度IP:{address}");
            //}
            //  Console.WriteLine(text.ToString());
            Console.ReadKey();
        }
    }
}
